home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / python2.6 / xml / __init__.pyc (.txt) < prev   
Encoding:
Python Compiled Bytecode  |  2009-04-20  |  1.1 KB  |  46 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. '''Core XML support for Python.
  5.  
  6. This package contains four sub-packages:
  7.  
  8. dom -- The W3C Document Object Model.  This supports DOM Level 1 +
  9.        Namespaces.
  10.  
  11. parsers -- Python wrappers for XML parsers (currently only supports Expat).
  12.  
  13. sax -- The Simple API for XML, developed by XML-Dev, led by David
  14.        Megginson and ported to Python by Lars Marius Garshol.  This
  15.        supports the SAX 2 API.
  16.  
  17. etree -- The ElementTree XML library.  This is a subset of the full
  18.        ElementTree XML release.
  19.  
  20. '''
  21. __all__ = [
  22.     'dom',
  23.     'parsers',
  24.     'sax',
  25.     'etree']
  26. __version__ = '$Revision: 41660 $'.split()[-2:][0]
  27. _MINIMUM_XMLPLUS_VERSION = (0, 8, 4)
  28.  
  29. try:
  30.     import _xmlplus
  31. except ImportError:
  32.     pass
  33.  
  34.  
  35. try:
  36.     v = _xmlplus.version_info
  37. except AttributeError:
  38.     pass
  39.  
  40. if v >= _MINIMUM_XMLPLUS_VERSION:
  41.     import sys
  42.     _xmlplus.__path__.extend(__path__)
  43.     sys.modules[__name__] = _xmlplus
  44. else:
  45.     del v
  46.